package com.fline.simplesys.service.impl;

import java.util.Map;

import com.fline.simplesys.entity.SxQqzbGdsb;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.fline.simplesys.mapper.SxQqzbGdsbMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author yangjf
 * @version 0.1.0
 * @time 2020/2/7
 */

@Service
public class SxYqzbService {

    @Autowired
    private SxQqzbGdsbMapper gdsbMapper;

    public Page<SxQqzbGdsb> selectList(Integer page, Integer size, Map param) {
        if (null == page || null == size) {
            page = 1;
            size = 10;
        }
        PageHelper.startPage(page, size);
        Page<SxQqzbGdsb> pages = gdsbMapper.selectList(param);
        return pages;
    }
}
